<?php
function callback_init(){
	$DB = MySql::getInstance();
	$CACHE = Cache::getInstance();
	$emer_share_config = array(
		"EMEER_SHARE_SYNC"=>1,
		"EMEER_SHARE_RALATENUM"=>5,
		"EMEER_SHARE_RALATE"=>false,
		"EMEER_SHARE_CATEGORY"=>1
	);
	$DB->query('INSERT INTO '.DB_PREFIX."options (`option_name`, `option_value`) VALUES ('emer_share_config','".serialize($emer_share_config)."')");
	$CACHE->updateCache("options");
}

function callback_rm(){
	$DB = MySql::getInstance();
	$CACHE = Cache::getInstance();
	$DB->query("DELETE FROM `".DB_PREFIX."options` WHERE (`option_name`='emer_share_config')");
	$CACHE->updateCache("options");
}